package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SnmpSensubjectdeviceMapper;
import com.ruoyi.system.domain.SnmpSensubjectdevice;
import com.ruoyi.system.service.ISnmpSensubjectdeviceService;

/**
 * 传感器主题和设备关联数据Service业务层处理
 *
 * @author ruoyi
 * @date 2025-08-26
 */
@Service
public class SnmpSensubjectdeviceServiceImpl implements ISnmpSensubjectdeviceService
{
    @Autowired
    private SnmpSensubjectdeviceMapper snmpSensubjectdeviceMapper;

    /**
     * 查询传感器主题和设备关联数据
     *
     * @param id 传感器主题和设备关联数据主键
     * @return 传感器主题和设备关联数据
     */
    @Override
    public SnmpSensubjectdevice selectSnmpSensubjectdeviceById(Long id)
    {
        return snmpSensubjectdeviceMapper.selectSnmpSensubjectdeviceById(id);
    }

    /**
     * 查询传感器主题和设备关联数据列表
     *
     * @param snmpSensubjectdevice 传感器主题和设备关联数据
     * @return 传感器主题和设备关联数据
     */
    @Override
    public List<SnmpSensubjectdevice> selectSnmpSensubjectdeviceList(SnmpSensubjectdevice snmpSensubjectdevice)
    {
        return snmpSensubjectdeviceMapper.selectSnmpSensubjectdeviceList(snmpSensubjectdevice);
    }

    /**
     * 新增传感器主题和设备关联数据
     *
     * @param snmpSensubjectdevice 传感器主题和设备关联数据
     * @return 结果
     */
    @Override
    public int insertSnmpSensubjectdevice(SnmpSensubjectdevice snmpSensubjectdevice)
    {
        return snmpSensubjectdeviceMapper.insertSnmpSensubjectdevice(snmpSensubjectdevice);
    }

    /**
     * 修改传感器主题和设备关联数据
     *
     * @param snmpSensubjectdevice 传感器主题和设备关联数据
     * @return 结果
     */
    @Override
    public int updateSnmpSensubjectdevice(SnmpSensubjectdevice snmpSensubjectdevice)
    {
        return snmpSensubjectdeviceMapper.updateSnmpSensubjectdevice(snmpSensubjectdevice);
    }

    /**
     * 批量删除传感器主题和设备关联数据
     *
     * @param ids 需要删除的传感器主题和设备关联数据主键
     * @return 结果
     */
    @Override
    public int deleteSnmpSensubjectdeviceByIds(Long[] ids)
    {
        return snmpSensubjectdeviceMapper.deleteSnmpSensubjectdeviceByIds(ids);
    }

    /**
     * 删除传感器主题和设备关联数据信息
     *
     * @param id 传感器主题和设备关联数据主键
     * @return 结果
     */
    @Override
    public int deleteSnmpSensubjectdeviceById(Long id)
    {
        return snmpSensubjectdeviceMapper.deleteSnmpSensubjectdeviceById(id);
    }
    @Override
    public int deleteSnmpSensubjectdeviceByDevice(String deviceId)
    {
        return snmpSensubjectdeviceMapper.deleteSnmpSensubjectdeviceByDevice(deviceId);
    }

}
